package org.ilc.socketserver.codec;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;


public class DefaultProtocolCodecFactory implements ProtocolCodecFactory{

	private DefaultProtocolDecoder decoder=null;

	public DefaultProtocolCodecFactory(){
		this.decoder=new DefaultProtocolDecoder(new HttpProtocolDecoder ());
	}
	@Override
	public ProtocolDecoder getDecoder(IoSession session) throws Exception {
		return decoder;
	}

	@Override
	public ProtocolEncoder getEncoder(IoSession arg0) throws Exception {
		return null;
	}

}
